﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CodeGeneratorSamples.Sample2;

namespace CodeGeneratorSamples
{
    class Program
    {
        static void Main(string[] args)
        {            
            MyCustomSchema3 typedXmlObject = new MyCustomSchema3();

            typedXmlObject.Table1Element = new MyCustomSchema3.Table1();
            typedXmlObject.Table1Element.Column1 = 100;
            typedXmlObject.Table1Element.Column2 = "test";
            typedXmlObject.Table1Element.Column3 = DateTime.Now;

            typedXmlObject.Table1Element.SubTable3Element = new MyCustomSchema3.Table1.SubTable3();
            typedXmlObject.Table1Element.SubTable3Element.Column1 = 200;
            typedXmlObject.Table1Element.SubTable3Element.Column2 = "test 200";
            typedXmlObject.Table1Element.SubTable3Element.Column3 = DateTime.Now;

            typedXmlObject.Table2Element = new MyCustomSchema3.Table2();
            typedXmlObject.Table2Element.Column7 = "test 3";

            string xmlResults = typedXmlObject.ToString();

            Console.WriteLine(xmlResults);
        }
    }
}
